 set java_home=D:\jdk1.8.0_71
 set javaexec="%java_home%\bin\java.exe"
%javaexec%   -jar %~dp0word.jar
pause